const getters = {
  sidebar: state => state.app.sidebar,
  roles: state => state.user.roles,
  access_token: state => state.user.access_token,
  device: state => state.app.device,
  size: state => state.app.size,
  fontSizeBase: state => parseInt(state.app.fontSizeBase),
  residentAddressTree: state => state.app.residentAddressTree,
  isLeftTree: state =>
    state.app.residentAddressTree === '1' && state.app.device === 'desktop',
  avatar: state => state.user.avatar,
  permission_routes: state => state.permission.routes,
  menuFont: state => state.app.menuFont
}
export default getters
